package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.WorkOrderPersonEntity;

import java.util.List;
import java.util.Map;

/**
 * @author ly1666
 * @date 2019/3/15 上午11:23
 * @since v1.0
 * @version v1.0
 */
public interface WorkOrderPersonModel extends IModel<WorkOrderPersonEntity> {

    @Override
    Integer insert(WorkOrderPersonEntity entity)throws XbbException;

    @Override
    Integer update(WorkOrderPersonEntity entity)throws XbbException;

    @Override
    List<WorkOrderPersonEntity> findEntitys(Map<String, Object> param);

    @Override
    Integer getEntitysCount(Map<String, Object> param);

    WorkOrderPersonEntity getByKey(Long key, String corpid);

    Integer save(WorkOrderPersonEntity entity)throws XbbException;

    Integer deleteByKey(Long key, String corpid);

}
